export interface User {
  id: number
  username: string
  created_at: string
}

export interface LoginResponse {
  access_token: string
  refresh_token: string
  user: User
}

export interface TokenResponse {
  access_token: string
}

export interface NumberOperation {
  id: number
  value: number
  created_by: number
  created_at: string
}

export interface ApiError {
  detail: string
}

export interface CheckNumberResponse {
  check_number: number
}

export interface SuccessResponse<T = any> {
  status: 'success'
  data: T
  }

  export interface ErrorResponse {
  status: 'error'
  message: string
  }